ga.view.streaming
Class ShowRoomState<T extends IIndividual<T>>

java.lang.Object
  extended by com.jme3.app.state.AbstractAppState
      extended by ga.view.appstate.RootNodeState
          extended by ga.view.appstate.SceneState
              extended by ga.view.streaming.ShowRoomState<T>
Type Parameters:
T - The generic type of the individuals.
All Implemented Interfaces:
com.jme3.app.state.AppState

public class ShowRoomState<T extends IIndividual<T>>
extends SceneState

This is an app state that shows individuals in the showroom.

Since:
12.08.2012
Author:
Stephan Dreyer

Nested Class Summary
private  class ShowRoomState.DoubleClickListener
          Mouse listener that exits this state if a double click has been detected.
 
Field Summary
private  CameraSettings camSettings
           
private  ShowRoomState.DoubleClickListener doubleClickListener
           
private  CamDragListener dragListener
           
private  PanelNode<T> panelNode
           
private  com.jme3.system.AppSettings settings
           
private  com.jme3.app.state.AppState stateToPause
           
 
Fields inherited from class ga.view.appstate.SceneState
app, assetManager, cam, inputManager, renderManager, stateManager, timer, viewPort
 
Fields inherited from class ga.view.appstate.RootNodeState
rootNode
 
Fields inherited from class com.jme3.app.state.AbstractAppState
initialized
 
Constructor Summary
ShowRoomState(com.jme3.app.state.AppState stateToPause, CameraSettings camSettings)
          Instantiates a new show room state.
 
Method Summary
 void initialize(com.jme3.app.state.AppStateManager stateManager, com.jme3.app.Application app)
           
 void setCamSettings(CameraSettings camSettings)
          Sets the cam settings.
 void setEnabled(boolean enabled)
           
 void setPanelNode(PanelNode<T> panelNode)
          Sets the panel node.
 void setRootNode(com.jme3.scene.Node node)
          Sets the root node.
 void setSettings(com.jme3.system.AppSettings settings)
          Sets the app settings.
 void stateAttached(com.jme3.app.state.AppStateManager stateManager)
           
 void stateDetached(com.jme3.app.state.AppStateManager stateManager)
           
 
Methods inherited from class ga.view.appstate.SceneState
finalCleanUp, getCamera
 
Methods inherited from class ga.view.appstate.RootNodeState
cleanup, getRootNode, update
 
Methods inherited from class com.jme3.app.state.AbstractAppState
isEnabled, isInitialized, postRender, render
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

stateToPause

private final com.jme3.app.state.AppState stateToPause

dragListener

private CamDragListener dragListener

doubleClickListener

private ShowRoomState.DoubleClickListener doubleClickListener

panelNode

private PanelNode<T extends IIndividual<T>> panelNode

settings

private com.jme3.system.AppSettings settings

camSettings

private CameraSettings camSettings
Constructor Detail

ShowRoomState

public ShowRoomState(com.jme3.app.state.AppState stateToPause,
                     CameraSettings camSettings)
Instantiates a new show room state.

Parameters:
stateToPause - the state to pause
camSettings - the cam settings
Since:
12.08.2012
Method Detail

initialize

public void initialize(com.jme3.app.state.AppStateManager stateManager,
                       com.jme3.app.Application app)
Specified by:
initialize in interface com.jme3.app.state.AppState
Overrides:
initialize in class SceneState

setCamSettings

public void setCamSettings(CameraSettings camSettings)
Sets the cam settings.

Parameters:
camSettings - the new cam settings
Since:
12.08.2012

setPanelNode

public void setPanelNode(PanelNode<T> panelNode)
Sets the panel node.

Parameters:
panelNode - the new panel node
Since:
12.08.2012

setRootNode

public void setRootNode(com.jme3.scene.Node node)
Sets the root node.

Parameters:
node - the new root node
Since:
12.08.2012

setSettings

public void setSettings(com.jme3.system.AppSettings settings)
Sets the app settings.

Parameters:
settings - the new app settings
Since:
12.08.2012

setEnabled

public void setEnabled(boolean enabled)
Specified by:
setEnabled in interface com.jme3.app.state.AppState
Overrides:
setEnabled in class SceneState

stateAttached

public void stateAttached(com.jme3.app.state.AppStateManager stateManager)
Specified by:
stateAttached in interface com.jme3.app.state.AppState
Overrides:
stateAttached in class com.jme3.app.state.AbstractAppState

stateDetached

public void stateDetached(com.jme3.app.state.AppStateManager stateManager)
Specified by:
stateDetached in interface com.jme3.app.state.AppState
Overrides:
stateDetached in class com.jme3.app.state.AbstractAppState